package com.ruoyi.carUser.service.imp;

import com.ruoyi.carUser.mapper.ShopUserMapper;
import com.ruoyi.carUser.service.ShopUserService;
import com.ruoyi.system.api.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShopUserServiceImpl implements ShopUserService {
    @Autowired
    private ShopUserMapper shopUserMapper;
    @Override
    public User selectByPhone(String phone) {
        if (shopUserMapper.selectByPhone(phone)==null){
            return null;
        }
        return shopUserMapper.selectByPhone(phone);
    }
}
